import axios from "./axios";
import { getLocalStroage } from "@/utils/localStorage";

export function sendComment(t, type, id, content, commentId) {
  return getLocalStroage("cookie")
    ? axios({
        url: "/comment?cookie=" + getLocalStroage("cookie"),
        params: {
          t,
          type,
          id,
          content,
          commentId,
        },
      })
    : [];
}
